package cn.kgm.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 想要远程调用其他服务：
 * 1，引用openfegin
 * 2，编写接口，告诉springcloud该接口需要注册到可远程调用容器中
 * 3，开启fegin功能 :
 * @EnableFeignClients(basePackages = "cn.kgm.coupon.fegin")
 */
@EnableFeignClients(basePackages = "cn.kgm.member.fegin")
@EnableDiscoveryClient
@SpringBootApplication
public class KashopMemberApplication {
    public static void main(String[] args) {
        SpringApplication.run(KashopMemberApplication.class,args);
    }
}

